<?php


/**
 * Base_AdminObject - Admin object
 *
 * @package
 * @author Alexis Eric, Erra Prod
 * @copyright Copyright (c) 2012 - Erra Prod
 * @version $1.0$
 * @access public
 */
class Base_AdminObject extends Erra_Fields_Base_Object {
    public static $objectDir = 'application/objects';
    public static $actionDir = 'application/actions';

    function __construct($objectId, $buildArgs = null) {
        parent::__construct($objectId, $buildArgs);

        $login = Erra_Fields_Text::create('login')->setDescription(__('Admin login'));
        $password = Erra_Fields_Password::create('password')->setDescription( __('Admin password'));
        $this->setActionName( __('Connection'));
        $this->setDescription(__('Admin panel'));
        
        $this->addFields($login, $password);
        $this->setReadOnly(true);
    }

}

?>